package com.neighbor.neighborhoodadmin.service.impl;

import com.neighbor.neighborhoodadmin.pojo.Admins;
import com.neighbor.neighborhoodadmin.dao.IAdminsDao;
import com.neighbor.neighborhoodadmin.service.IAdminsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 后台管理员表 服务实现类
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:11:23
 */
@Service
public class AdminsServiceImpl extends ServiceImpl<IAdminsDao, Admins> implements IAdminsService {

    @Autowired
    IAdminsDao adminsDao;

    /**
     *      根据管理员昵称模糊查询
     * @param username  关键词
     * @return  返回管理对象
     */
    @Override
    public List<Admins> selByName(String username) {
        return adminsDao.selByName(username);
    }
}
